package com.heima.admin.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.ChannelDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmChannel;

public interface IChannelService extends IService<WmChannel>{
    /**
     * 分页查询
     * @param dto
     * @return
     */
    ResponseResult getChannelPage(ChannelDto dto);

    /**
     * 根据id删除频道
     * @param id
     * @return
     */
    ResponseResult channelDelete(Integer id);

    /**
     * 新增频道
     * @param wmChannel
     * @return
     */
    ResponseResult channelSave(WmChannel wmChannel);

    /**
     * 更新频道
     * @param wmChannel
     * @return
     */
    ResponseResult channelUpdate(WmChannel wmChannel);
}
